//
// ObjectARX defined commands

#include "StdAfx.h"
#include "StdArx.h"

#include "DBConnectionManager.h"
#include <UEEntityOperation.h>
#include "GenerateComponent.h"

// This is command 'TEST'
void UEUeTest()
{
	EquipDataSourceItem* pItem = new EquipDataSourceItem;
	EquipDataSourceManager manager;
	pItem->QueryStatement(_T("select * from test"));
	_ConnectionPtr* pConn = DAWrapper::DBConnectionManager::Instance()
		->GetConnectionPtrByUri(_T("D:\\UELib\\TestFile\\db.mdb"));
	ASSERT(pConn);

	pItem->FormatName(_T("_AY2"));
	pItem->Uri(_T("D:\\UELib\\TestFile\\AY2.txt"));
	pItem->Connection(pConn);
	manager.CurrentDataSourceItem(pItem);

	CUEEntityOperation::AddEntityToDwg(CreateEntity(&manager));
}

